import request from "@/utils/request";

export function showAll(params) {
  return request({
    url: '/chapter/getBycId/'+params,
    method: 'post',
  })
}

export function saveUpdate(params) {
  return request({
    url: '/chapter/saveUpdate',
    method: 'post',
    data:params
  })
}
export function showChapter(params) {
  return request({
    url: '/chapter/getOne/'+params,
    method: 'post',
  })
}
export function delChapter(params) {
  return request({
    url: '/chapter/delChapter/'+params,
    method: 'post',
  })
}
